<!DOCTYPE html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            margin: auto;
            text-align: center;
        }
    </style>
</head>
<body>
    <table border="1">
        <tr>
            <td>权限id</td>
            <td>权限名</td>
            <td colspan="2"><a th:href="@{a}">添加</a></td>
        </tr>
        <tr th:each="r:${roles}">
            <td th:text="${r.role_id}"></td>
            <td th:text="${r.role_name}"></td>
            <td><a th:href="@{'./xg?role_id='+${r.role_id}}" th:text="修改"></a></td>
            <td><a th:href="@{'./delete?role_id='+${r.role_id}}" th:text="删除"></a></td>
        </tr>
    </table>
</body>
</html>